package com.trainbook.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 车次途径站点表
 * </p>
 *
 * @author Dempsey
 * @since 2020-11-27
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("trainSites")
@ApiModel(value = "TrainSites", description = "车次途径站点表")
public class TrainSites implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "站点id")
    @TableField("siteId")
    private Integer siteId;

    @ApiModelProperty(value = "车次id")
    @TableField("trainId")
    private Integer trainId;

    @ApiModelProperty(value = "顺序（起始站点为 0）")
    @TableField("order")
    private Integer order;

    @ApiModelProperty(value = "到站时间")
    @TableField("arriveTime")
    private LocalDateTime arriveTime;

    @ApiModelProperty(value = "出发时间")
    @TableField("leaveTime")
    private LocalDateTime leaveTime;

    @ApiModelProperty(value = "停留时间")
    @TableField("waitTime")
    private Long waitTime;
    
}
